import HttpHandler from "@/handler/HttpHandler";

export default class Group{
  constructor() {
    this.http=new HttpHandler();
  }
  queryGroupTree() {
    const url ='/tie-demo/groupTree/queryGroupTree';
    return this.http.get(url);
  }
  add(data){
    const url='/tie-demo/groupTree/add';
    return this.http.post(url,data);
  }
  update(data){
    const url='/tie-demo/groupTree/updateOne';
    return this.http.post(url,data);
  }
  selectOne(data){
    const url='/tie-demo/groupTree/queryOneByPid';
    return this.http.get(url,data);
  }
  delete(data){
    const url='/tie-demo/groupTree/deleteOne';
    return this.http.post(url,data);
  }
  queryList(data){
  const url='/tie-demo/groupTree/queryList';
  return this.http.get(url,data);
  }


  getWorkList(data) {
    const url = '/tie-system/entDept/queryFactoryList'
    return this.http.get(url,data)
  }


}
